package com.ybkj.o2o.zhuanxian.entity;

import com.ybkj.o2o.zhuanxian.common.CustomDateSerializer;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;
import java.util.Date;

/**
 * Base .
 * @author Administrator
 *
 */
@JsonAutoDetect(fieldVisibility = Visibility.NONE)
public abstract class Base implements Serializable {

  private static final long serialVersionUID = 7306031543586174909L;

  protected Long id;

  @JsonSerialize(using = CustomDateSerializer.class)
  protected Date created;

  @JsonSerialize(using = CustomDateSerializer.class)
  protected Date updated;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

}
